<?php
/**
 * xushuhui
 * 2017/8/10
 * 11:48
 */

namespace app\lib\validate;


class UserRegister extends BaseValidate
{
	protected $rule = [
		['mobile','require|number|isMobile|unique:user','手机号码不能为空|格式错误，请输入正确的手机号|格式错误，请输入正确的手机号|手机号已存在'],
		['password','require|length:6,20|alphaDash','密码必须输入|密码应为6-20个字符|密码不能是汉字'],
		['smscode','require|number|length:4','短信验证码不能为空|短信验证码只能是数字|短信验证码只能是四位'],
		['code','require','激活码必须输入'],
		['agree','require','必须同意注册协议']
	];

}